[PyGTK] How to Create a Multiline Button
Posted
by EShull
on Stack Overflow
See other posts from Stack Overflow
or by EShull
Published on 2010-05-13T00:19:25Z
Indexed on
2010/05/13
0:24 UTC
Read the original article
Hit count: 547
I'm trying to create a multiline button with PyGTK. I have a label added to my subclass of gtk.Button, but I'm having trouble sizing the label to the button. If the label makes it's own size, there is no text wrapping even with label.set_line_wrap(True)
because the label simply resizes beyond the bounds of the button. I would set the size of the label to that of the button, but unless I explicitly set the size of the button using set_size_request
, I haven't been able to find out how big the button is (it's packed in a table).
Any suggestions?
© Stack Overflow or respective owner